﻿using UnityEngine;

public class TestElementReactionAoe : MonoBehaviour
{
    [SerializeField] private GameObject _player;
    [SerializeField] private GameObject[] _targets;


    public void WindAoe1()
    {
        foreach (var target in _targets)
        {
            var attackData = new AttackData
            {
                Source = _player,
                Damage = 100f,
                ElementType = ElementType.Wind,
                ElementGauge = 1f
            };
            target.GetComponent<ActorDamageable>().TakeDamage(attackData);
        }
    }

    public void WindAoe2()
    {
        foreach (var target in _targets)
        {
            var attackData = new AttackData
            {
                Source = _player,
                Damage = 100f,
                ElementType = ElementType.Wind,
                ElementGauge = 2f
            };
            target.GetComponent<ActorDamageable>().TakeDamage(attackData);
        }
    }
}